package cn.csc.module.shop.controller.admin.banner.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
* banner Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ShopBannerBaseVO {

    @ApiModelProperty(value = "id", required = true)
    private BigInteger id;

    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "图片", required = true)
    @NotNull(message = "图片不能为空")
    private String picUrl;

    @ApiModelProperty(value = "发布状态，0未发布，5已发布，10、已下架", required = true)
    private Integer status;

    @ApiModelProperty(value = "显示序号", required = true)
    @NotNull(message = "显示序号不能为空")
    private Integer orderNumber;

    @ApiModelProperty(value = "关联商品id")
    private BigInteger spuId;

    @ApiModelProperty(value = "跳转类型，1跳转链接，2、图文配置", required = true)
    @NotNull(message = "跳转类型不能为空")
    private Integer urlType;

    @ApiModelProperty(value = "图文标题", required = true)
    private String textTitle;

    @ApiModelProperty(value = "图文内容", required = true)
    private String content;

    @ApiModelProperty(value = "跳转链接", required = true)
    private String url;


}
